import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: { name: 'Login' } },
  { path: '/login', name: 'Login', component: () => import('../views/framework/login/Login.vue') },
  { path: '/index', name: 'Index', component: () => import('../views/Index.vue') }
]

const router = new VueRouter({
  routes
})

export default router
